package com.anjbo.bean.estatedeal;

import java.util.List;

/**
 * Created by Administrator on 2017/3/14.
 */
public class GZDealWrapperDto {

    /*广州一手房总数*/
    private Integer oneTotal=0;
    /*广州一手房数据*/
    private List<GZDealDto>  oneData;
    /*广州一手房详情*/
    private List<GZDealDto>  oneDetail;

    /*广州二手房总数*/
    private Integer scndTotal=0;
    /*广州二手房数据*/
    private List<GZDealDto>  scndData;

    public List<GZDealDto> getOneData() {
        return oneData;
    }

    public void setOneData(List<GZDealDto> oneData) {
        if(oneData!=null){
            for(GZDealDto dto:oneData){
                oneTotal+=dto.getTotalNum();
            }
        }
        this.oneData = oneData;
    }

    public List<GZDealDto> getScndData() {
        return scndData;
    }

    public void setScndData(List<GZDealDto> scndData) {
        if(scndData!=null){
            for(GZDealDto dto:scndData){
                scndTotal+=dto.getTotalNum();
            }
        }
        this.scndData = scndData;
    }

    public GZDealWrapperDto() {
    }

    public GZDealWrapperDto(List<GZDealDto> oneData, List<GZDealDto> scndData) {
        this.oneData = oneData;
        this.scndData = scndData;
    }

    public Integer getOneTotal() {
        return oneTotal;
    }

    public void setOneTotal(Integer oneTotal) {
        this.oneTotal = oneTotal;
    }

    public List<GZDealDto> getOneDetail() {
        return oneDetail;
    }

    public void setOneDetail(List<GZDealDto> oneDetail) {
        this.oneDetail = oneDetail;
    }

    public Integer getScndTotal() {
        return scndTotal;
    }

    public void setScndTotal(Integer scndTotal) {
        this.scndTotal = scndTotal;
    }
}
